package com.zmn.mcc.task.config;

import com.zmn.mcc.cas.web.dao.RedisSessionDao;
import org.apache.shiro.session.mgt.eis.JavaUuidSessionIdGenerator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author quanjic
 * @version v1.0
 * @since 2020/6/18 11:35
 **/
@Configuration
public class CasJobConfiguration {

    @Bean
    public RedisSessionDao redisSessionDao() {
        RedisSessionDao redisSessionDao = new RedisSessionDao();
        redisSessionDao.setSessionIdGenerator(new JavaUuidSessionIdGenerator());
        return redisSessionDao;
    }

}
